package com.example.shop_2212.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.entity.PreOrderDetail
import com.example.shop_2212.R
import com.example.shop_2212.utils.GlideUtils

class PreOrderAdapter:BaseQuickAdapter<PreOrderDetail,BaseViewHolder>(R.layout.item_pre_order) {
    override fun convert(holder: BaseViewHolder, item: PreOrderDetail) {
        GlideUtils.loadImage(context,item.image,holder.getView(R.id.order_iv))
        holder.setText(R.id.order_name,item.productName)
        holder.setText(R.id.order_num,"X ${item.payNum}")
        holder.setText(R.id.order_price,"￥${item.price}")
    }
}